using Godot;
using System;

public partial class Level5 : Node2D
{

    //ready 
    public override void _Ready()
    {
        //get player node
        var player = GetTree().GetCurrentScene().FindChild("Player", true, false) as PlayerController;
        if (player != null)
        {
            player.SwitchColor(PlayerColor.Red);
        }
        else
        {
            GD.PrintErr("Player node not found in Level5.");
        }
    }
}
